Skip to content

feat: resizable/external ArrayBuffer APIs (v0.18 P6) - #781

Merged
buke merged 3 commits into
mainfrom
feat/v018-arraybuffer
Nov 6, 2026
Merged

buke merged 3 commits into
mainfrom
feat/v018-arraybuffer

Conversation

@buke

@buke buke commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add NewResizableArrayBuffer and NewArrayBufferFromBytes (fixed zero-copy or resizable copy).
  • Add Value.DetachArrayBuffer.
  • Keep existing NewArrayBuffer as copy-only.

Test plan

  • go test ./...

Expose NewResizableArrayBuffer, NewArrayBufferFromBytes, and
DetachArrayBuffer while keeping NewArrayBuffer copy semantics.
@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f5a3165) to head (b303f3b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #781   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         3481      3549   +68     
=========================================
+ Hits          3481      3549   +68     
Files with missing lines Coverage Δ
context.go 100.00% <100.00%> (ø)
value.go 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5a3165...b303f3b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

buke added 2 commits November 6, 2026 13:05
Exercise fail-closed inputs, empty buffers, and calloc failure via a
test hook for NewResizableArrayBuffer/NewArrayBufferFromBytes.
@buke
buke merged commit e597f96 into main Nov 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant